/**
 * Author(s): xuming.Wong <xuming.Wong@gmail.com>
 * Origin source from MaNGOS(GPL2).
 * Copyright (C) 2005-2010 MaNGOS <http://getmangos.com/>
 */

#include "ObjectManager.h"

namespace PQServiceCore
{
	int ObjectManager::getLocaleIndex(LocaleConstant loc)
	{
		if(loc==LOCALE_enUS){
			return -1;
		}

		for(size_t i=0;i < _locales.size(); ++i){
			if(_locales[i]==loc){
				return i;
			}
		}
		return -1;
	}

}
